﻿using CrossSelling.Model.Interface;

namespace CrossSelling.Provider
{
    public class ProviderFactory : IProviderFactory
    {
        private ICrossSellingProductProvider crossSellingProducts = null;
        public ICrossSellingProductProvider CrossSellingProducts
        {
            get
            {
                if (crossSellingProducts == null) crossSellingProducts = new CrossSellingProductProvider();
                return crossSellingProducts;
            }
        }

        private IProductHandbookProvider productHandbooks = null;
        public IProductHandbookProvider ProductHandbooks
        {
            get
            {
                if (productHandbooks == null) productHandbooks = new ProductHandbookProvider();
                return productHandbooks;
            }
        }
    }
}
